/*
 * Copyright (c) 2003-2005
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.hibernate;

import java.net.URL;

import org.generama.JellyTemplateEngine;
import org.generama.MetadataProvider;
import org.generama.Plugin;
import org.generama.QDoxCapableMetadataProvider;
import org.generama.WriterMapper;

/**
 * test hibernate config without properties set
 *
 * @author kostik
 */
public class NoMappingHibernateConfigTestCase extends AbstractHibernateConfigTestCase {
    protected URL getExpected() {
        return getResourceRelativeToThisPackage("config/nomapping.cfg.xml");
    }

    protected Plugin createPlugin(MetadataProvider metadataProvider, WriterMapper writerMapper) {
        HibernateConfigPlugin plugin =  new HibernateConfigPlugin(new JellyTemplateEngine(), (QDoxCapableMetadataProvider) metadataProvider,
            writerMapper);
            
            plugin.setDontaddmappings(true);
            plugin.setVersion("3.0");
            return plugin;
    }
}